package io.renren.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.app.entity.LineDepEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface LinedptDao extends BaseMapper<LineDepEntity> {

    @Select("SELECT dept_name FROM user_line_dept WHERE status = 0 AND parent_id NOT IN (0, 1)")
    List<String> selectDeptNames();
}

